package editro.controller 
{
	import editro.model.AntTaskVOListModel;
	import editro.view.components.AntTaskView;
	import org.robotlegs.mvcs.Command;
	/**
	 * 输出现有的关系
	 */
	public class ExportInfoCommand extends Command
	{
		[Inject] 
		public var antVoModel:AntTaskVOListModel;
		
		override public function execute():void 
		{
			for (var i:int = 0; i < antVoModel.taskViewList.length; i++) 
			{
				var item:AntTaskView = antVoModel.taskViewList[i];
				var nsv:String = item.vo.targetName as String;
				var ds:String;
				if (item.vo.targetDependedOnVO) 
				{
					ds = item.vo.targetDependedOnVO.targetName;
				}else {
					ds = ':(';
				}
				trace(nsv, '>>',ds);
			}
		}
	}

}